<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Home Page</title>
    <link href='https://fonts.googleapis.com/css?family=Lobster|Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'/>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" href="<?php echo ROOT_URL; ?>/public/style/ui-lightness/jquery-ui-1.8.21.custom.css"/>
    <link rel="stylesheet" type="text/css" href="<?php echo ROOT_URL; ?>/public/style/Fresho.css"/>
    <link rel="stylesheet" type="text/css" href="<?php echo ROOT_URL; ?>/public/style/Fresho.custom.css"/>
    <link rel="stylesheet" type="text/css" href="<?php echo ROOT_URL; ?>/public/style/reset.css"/>
	<link rel="stylesheet" href="<?php ECHO ROOT_URL; ?>/public/style/comon.css" type="text/css" media="screen" />
	<script type="text/javascript" src="<?php echo ROOT_URL; ?>/public/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="<?php echo ROOT_URL; ?>/public/js/jquery-ui-1.8.21.custom.min.js"></script>
	<script type="text/javascript" src="<?php echo ROOT_URL; ?>/public/js/jquery.scrollTo.js" ></script>
	<script type="text/javascript" src="<?php echo ROOT_URL; ?>/public/js/validator.js" ></script>
	<script type="text/javascript">
		var ROOT_URL = "<?php echo ROOT_URL; ?>";
		
	</script>
	<script type="text/javascript">
			$(function(){
				// Dialog
				$('#dialog').dialog({
					resizable: false,
					autoOpen: false,
					draggable: false,
					modal:true,
					width: 800,
				});

				// Dialog Link
				$('#register').click(function(){
					$("#div_form_popup").empty();
					$('#dialog').dialog('open');
					$('.ui-dialog-title').hide();
					$('.ui-dialog-titlebar').removeClass('ui-widget-header');
					$("#div_form_popup").load("user/regist");
					return false;
				});
				$('#signin').click(function(){
					$("#div_form_popup").empty();
					$('#dialog').dialog('open');
					$('.ui-dialog-title ').hide();
					$('.ui-dialog-titlebar').removeClass('ui-widget-header');
					$("#div_form_popup").load("user/login");
					return false;
				});

			});
		</script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="Homepage" id="HPPanel" >
        <div class="Header">
            <div class="InnerHeader">
                 <div class="HeaderLogo"></div>
                 <div class="Sign"></div>
                <div id="MspMembershipMenuContainer" class="MembershipMenu">
				  <div id="Anonymouse" class="Anonymouse">
				<?php $user = new Zend_Session_Namespace('user');
				if($user -> email){ ?>
					<a id="user_info" LinkType="Form" href=""><?php echo $user -> full_name ?></a>
					<a id="user_logout" LinkType="Form" href="<?php echo ROOT_URL . '/user/logout' ?>">logout</a>
				<?php } else{ ?>
					<a id="signin" LinkType="Form" FormType="SignIn" href="">Sign In</a>
					<span class="HorizontaolSeperator">|</span>
					<a id="register" LinkType="Form" FormType="Register">Register</a>
				<?php } ?>

	              </div>
                </div>
                <div id="ChannelImage" class="ChannelImage"></div>
            </div>
            
        </div>
		
			<div class="InnerContent">
				<div id="Text" class="Text">mySupermarket allows you to compare prices across the largest Grocery <br>
					and Health & Beauty stores in the UK. You're guaranteed to find the best prices, <br>
					all the offers and the best value. </div>
				<span id="TypeOfShop" class="TypeOfShopText"></span>	
			</div>
		<div id="MainPnl" class="Main">
			<?php echo $this->layout()->content;?>
		</div>
		<div class="StoreWrp"></div>
		<div class="Footer">
			<div class="MspFooter">
				<p>© Fresho Limited, 2012. All rights reserved.</p>
			</div>
		</div>
    </div>
	<div id="dialog" title="Dialog Title">
		<div id="div_form_popup" ></div>
	</div>
    </form>
</body>
</html>
